package com.controller;

import com.server.impl.ProductServiceImpl;
import com.server.impl.ShoppingProductServiceImpl;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class shoppingController {

    @Resource
    ShoppingProductServiceImpl shoppingProductService;
    @Resource
    ProductServiceImpl productService;
    //商品详情
  /*  @RequestMapping("/product/getshoppingproductList")
    public String getshoppingproductList(Model model){
        List<Product> shoppingproductList=shoppingProductService.getshoppingproductList();
        model.addAttribute("shoppingproductList",shoppingproductList);

        return "detail";
    }*/
/*    //请求到detail界面
    @RequestMapping("/product/getdetail")
    public String getdetail(){

        return "detail";
    }*/
    /*@RequestMapping("/product/getdetail")
    public String getdetail(int product_id){
        String det=new String("getdetail");
        Product product= shoppingProductService.getshoppingproductList().get(product_id);
        product.addObject("product_id",product_id);

        System.out.println(product_id);
        return "detail";
    }*/

}
